<template>
	<view class="center">
		<view class="content">
			<uni-icons type="checkbox-filled" size="90" :color="color" />
			<view class="title">支付成功</view>
			<view >￥{{ amount }}</view>
		</view>

		<!-- 		<view>webview来填充广告 webview会填充完整个页面</view> -->
	</view>
</template>

<script lang="ts" setup>
	import {onLoad} from '@dcloudio/uni-app'
	import {ref} from 'vue'
// import useGlobal from '../../store/global';
// const global = useGlobal();
let color = '#55BA36';
const amount = ref('')
onLoad((options)=>{
	console.log(options)
	amount.value = options.amount
})
// #ifdef MP-ALIPAY
color = '#3874F6';
//#endif
</script>

<style lang="scss" scoped>
.center {
	height: 100vh;
	.content {
		width: 200px;
		margin: 100px auto;
		text-align: center;
		font-size: 25px;
		.title {
			font-weight: 600;
			margin-top: 10px;
			margin-bottom: 3px;
		}
	}
}
</style>
